package org.kk.controller;

import com.kk.entities.Payment;
import com.kk.model.result.GlobalResult;
import org.kk.service.ConsumerService8401;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * the type of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-02-13
 */
@RestController
public class ConsumerController {

    @Autowired
    private ConsumerService8401 consumerService8401;

    @GetMapping("/get/{id}")
    public GlobalResult<Payment> getPaymentById(@PathVariable("id") int id){
        return consumerService8401.getPaymentById(id);
    }

}
